﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Somnus.Core.SceneManager;
using Somnus.Scenes;
using Somnus.Core;
using Somnus.Objects;
namespace Somnus.Core
{
    class Background
    {

        public Texture2D textura;
        public Vector2 posicao_origem, posicao_final;
        public Rectangle tamanho;
        public float profundidade;

        public Background(DreamWorld world, Texture2D textura)
        {
            this.textura = textura;
            posicao_origem = new Vector2(0, 0);
            posicao_final = new Vector2(0,0);
            this.tamanho = new Rectangle(0, 0, textura.Width, textura.Height);
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            if (textura!= null)
            spriteBatch.Draw(textura, posicao_final, new Rectangle(0, 0, textura.Width, textura.Height), Color.White);
        }
    }
}
